<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
//       $(function(){
        //           $("#btnSubmit").on('click',function(){
        //               $("#clinicDate").val($("#date").val());
        //               $("#searchForm").submit();
        //           })
        //       })
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/reg/clinicForRegist/index')">号表调整列表</a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <div class="datatable-top">
                            <div class="pull-left">
                            	<form:form id="searchForm" modelAttribute="clinicForRegist"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/reg/clinicForRegist/index')" method="post" class="form-inline">
                                    <%--<input id="clinicDate" name="clinicDateStr" type="hidden" value=""/>--%>
                                    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                                    <label>所属号别 ：</label>
                                    <form:input path="clinicIndexName" htmlEscape="false" maxlength="50" class="form-control" /> &nbsp;&nbsp;&nbsp;
                                    <label>就诊日期 ：</label>
                                    <form:input path="clinicDateStr"  class="form-control Wdate" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/> &nbsp;&nbsp;&nbsp;

                                    <%--<input name="clinicDateStr" class="form-control Wdate" type="text" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/>--%>
                                    &nbsp;
                                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                                </form:form>
                            </div>
                        </div> <table id="contentTable" class="table table-bordered mg-t datatable">
                            <thead>
                                <tr>
                                        <th>就诊日期</th>
                                        <th>所属号别</th>
                                        <th>时间描述</th>
                                        <th>限号数</th>
                                        <th>限预约号数</th>
                                        <th>当前号</th>
                                        <th>当日已挂号数</th>
                                        <th>已预约号数</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${page.list}" var="clinicForRegist">
                                <tr>
                                        <td>                                    <fmt:formatDate value="${clinicForRegist.clinicDate}" pattern="yyyy-MM-dd" />
                                        </td>
                                        <td> ${clinicForRegist.clinicIndexName}</td>
                                        <td> ${clinicForRegist.timeDescTrans}</td>
                                        <td> ${clinicForRegist.limitNum}</td>
                                        <td> ${clinicForRegist.limitPreNum}</td>
                                        <td> ${clinicForRegist.currentNum}</td>
                                        <td> ${clinicForRegist.currentRegisNum}</td>
                                        <td> ${clinicForRegist.currentPreNum}</td>
                                    <td>
                                        <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/reg/clinicForRegist/form?id=${clinicForRegist.id}')" class="btn btn-success btn-xs">修改</a>
                                        <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该号表调整吗？',function(){delLoad('mainCenterDiv','${ctx}/reg/clinicForRegist/delete?clinicForRegistIds=${clinicForRegist.id}','${ctx}/reg/clinicForRegist/index')})">删除</a>
                                    </td>
                                </tr>
                            </c:forEach>

                        </table>
                        <div class="pagination">${page}</div>
                    </div>
                </div>
            </section>
        </div>
    </div>